package modele.feuCDEVS;
import java.util.ArrayList;

import data.SimuParametres;

import vue.DisplayView;
import model.CoupledModel;
import model.Model;


public class CoupledModelLight extends CoupledModel {

	public CoupledModelLight(DisplayView displayView, SimuParametres simuParam) {
		super("CoupledModel light", "Interaction between model");
		Generator g = new Generator(simuParam);
		TrafficLight tl = new TrafficLight(simuParam);
		Display disp = new Display(displayView);
		
		this.addSubModel(g);
		this.addSubModel(tl);
		this.addSubModel(disp);
		
		this.addIC(g.getOutputPortStructure("command"), tl.getInputPortStructure("control"));
		this.addIC(tl.getOutputPortStructure("color"), disp.getInputPortStructure("control"));
		this.addIC(tl.getOutputPortStructure("colorRoute"), disp.getInputPortStructure("control"));
		// TODO ajout sortie colorRoute
	}

	@Override
	public Model select(ArrayList<Model> arg0) {
		return null;
	}

}
